package cloud.keveri.chat4j.provider.chatgpt.model;

import cloud.keveri.chat4j.api.entity.chat.Message;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 问答数据
 * <p>
 * 作者：沈自在
 **/
@Data
public class ChatChoice implements Serializable {

    @Serial
    private static final long serialVersionUID = -4007973808391936209L;

    /**
     *
     */
    private Long index;

    /**
     * 流返回
     */
    @JsonProperty("delta")
    private Message delta;

    /**
     * 非流返回
     */
    @JsonProperty("message")
    private Message message;

    /**
     *
     */
    @JsonProperty("finish_reason")
    private String finishReason;
}
